package edu.yctc.weblog.controller;

import java.io.IOException;
import java.net.URISyntaxException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.multipart.MultipartFile;

public interface BlogController {

    /**
     * md editor文件上传
     * 
     * @param request
     * @param response
     * @param file
     * @throws IOException
     * @throws URISyntaxException
     */
    public void uploadFileByEditormd(HttpServletRequest request, HttpServletResponse response,
        MultipartFile file) throws IOException, URISyntaxException;

    public String showBlogEdit(HttpServletRequest request);

    public String showBlogList(HttpServletRequest request);

    /**
     * 某一文章的编辑页
     * 
     * @param request
     * @param blogId
     * @return
     */
    public String edit(HttpServletRequest request, Long blogId);

}
